<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Creates a new SSL buffer event to send its data over an SSL on a socket</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="eventbufferevent.sslrenegotiate.html">« EventBufferEvent::sslRenegotiate</a></li>
      <li style="float: right;"><a href="eventbufferevent.write.html">EventBufferEvent::write »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="class.eventbufferevent.html">EventBufferEvent</a></li>
    <li>Creates a new SSL buffer event to send its data over an SSL on a socket</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="eventbufferevent.sslsocket" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">EventBufferEvent::sslSocket</h1>
  <p class="verinfo">(PECL event &gt;= 1.2.6-beta)</p><p class="refpurpose"><span class="refname">EventBufferEvent::sslSocket</span> &mdash; <span class="dc-title">Creates a new SSL buffer event to send its data over an SSL on a socket</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-eventbufferevent.sslsocket-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span>
   <span class="modifier">static</span>
   <span class="methodname"><strong>EventBufferEvent::sslSocket</strong></span>(<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam">
    <span class="type"><a href="class.eventbase.html" class="type EventBase">EventBase</a></span>
     <code class="parameter">$base</code>
   </span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam">
    <span class="type"><a href="language.types.declarations.html#language.types.declarations.mixed" class="type mixed">mixed</a></span>
     <code class="parameter">$socket</code>
   </span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam">
    <span class="type"><a href="class.eventsslcontext.html" class="type EventSslContext">EventSslContext</a></span>
     <code class="parameter">$ctx</code>
   </span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam">
    <span class="type">int</span>
     <code class="parameter">$state</code>
   </span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam">
    <span class="type">int</span>
     <code class="parameter">$options</code>
   <span class="initializer"> = ?</span></span><br>): <span class="type"><a href="class.eventbufferevent.html" class="type EventBufferEvent">EventBufferEvent</a></span></div>

  <p class="para rdfs-comment">
   Creates a new SSL buffer event to send its data over an SSL on a socket.
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-eventbufferevent.sslsocket-parameters">
  <h3 class="title">参数</h3>
  <dl>
   
    <dt>

     <code class="parameter">base</code>
    </dt>

    <dd>

     <p class="para">
      Associated event base.
     </p>
    </dd>

   
   
    <dt>

     <code class="parameter">socket</code>
    </dt>

    <dd>

     <p class="para">
      Socket to use for this SSL. Can be stream or socket resource, numeric
      file descriptor, or <strong><code>null</code></strong>. If
      <code class="parameter">socket</code>
      is <strong><code>null</code></strong>, it is assumed that the file descriptor for the socket will be
      assigned later, for instance, by means of
      <span class="methodname"><a href="eventbufferevent.connecthost.html" class="methodname">EventBufferEvent::connectHost()</a></span>
      method.
     </p>
    </dd>

   
   
    <dt>

     <code class="parameter">ctx</code>
    </dt>

    <dd>

     <p class="para">
      Object of
      <span class="classname"><a href="class.eventsslcontext.html" class="classname">EventSslContext</a></span>
      class.
     </p>
    </dd>

   
   
    <dt>

     <code class="parameter">state</code>
    </dt>

    <dd>

     <p class="para">
      The current state of SSL connection:
      <strong><code>EventBufferEvent::SSL_OPEN</code></strong>
      ,
      <strong><code>EventBufferEvent::SSL_ACCEPTING</code></strong>
      or
      <strong><code>EventBufferEvent::SSL_CONNECTING</code></strong>
      .
     </p>
    </dd>

   
   
    <dt>

     <code class="parameter">options</code>
    </dt>

    <dd>

     <p class="para">
      The buffer event options.
     </p>
    </dd>

   
  </dl>

 </div>

 <div class="refsect1 returnvalues" id="refsect1-eventbufferevent.sslsocket-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Returns
   <span class="classname"><a href="class.eventbufferevent.html" class="classname">EventBufferEvent</a></span>
   object.
  </p>
 </div>

 <div class="refsect1 seealso" id="refsect1-eventbufferevent.sslsocket-seealso">
  <h3 class="title">参见</h3>
  <ul class="simplelist">
   <li class="member">
    <span class="methodname"><a href="eventbufferevent.sslfilter.html" class="methodname" rel="rdfs-seeAlso">EventBufferEvent::sslFilter()</a> - Create a new SSL buffer event to send its data over another buffer event</span>
   </li>
  </ul>
 </div>

</div></div></div></body></html>